package com.tie.jun.ge.xxljob.domain;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @program: springboot
 * @description: 任务管理PO
 * @author: getiejun
 * @create: 2025-10-25 12:27
 **/
@TableName("tb_task_manage")
@Data
@NoArgsConstructor
public class TaskManagerPO {

    private Long id;

    private String jobId;

    private String taskName;

    private String taskDesc;

    private String scheduleType;

    private String scheduleConf;

    private String executorHandler;

    private String executorParam;

    private String triggerStatus;

    private String delFlag;

    private Long createBy;

    private Long updateBy;

    private Date createTime;

    private Date updateTime;

    public TaskManagerPO (TaskManagerDO taskManagerDO) {
        BeanUtil.copyProperties(taskManagerDO, this);
    }

    public TaskManagerDO toDO(){
        return BeanUtil.copyProperties(this, TaskManagerDO.class);
    }
}
